<div class="jumbotron">
    <h1>
        Buy Buy Buy!
    </h1>
</div>
<form action="/submitOrder" role="form" method="post">
    <div class="col-md-4 col-md-offset-4">
        <img class="image" alt="加载失败" src="__IMAGE__/{$picture}"/></img>
        <h3>商品: {$name}</h3>
        <h3>价格: {$price}</h3>
        <h3>库存: {$remain}</h3>
        <h3>详情: {$detail}</h3>
        <div class="input-group col-md-4" style="padding-left: 333px">
         <span class="input-group-btn">
             <button class="btn btn-default" type="button" id="sub" onclick="subQuantity()">-</button>
         </span>
            <!--判断只能输入纯数字-->
            <input type="text" class="form-control" maxlength="5" style="width: 70px;text-align: center" value="1"
                   id="quantity" name="quantity" onkeyup="value=value.replace(/\D/g,'')" onblur="isBlank({$remain})">
            <span class="input-group-btn">
              <button class="btn btn-default" type="button" id="add" onclick="addQuantity({$remain})">+</button>
         </span>
        </div>
        <p class="form-group">
            <button type="submit" class="btn btn-primary btn-block" style="margin-top: 15px">提交订单
            </button>
        </p>
    </div>
</form>